﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FastMvc.Crud.Models
{
    public class DtoEntity<TPrimaryKey>
    {
        public virtual TPrimaryKey sId { get; set; }
    }

    /// <summary>
    /// 所有前端用数据的基类
    /// </summary>
    public class DtoEntity : DtoEntity<string>
    {
        public override string sId { get; set; } = Guid.NewGuid().ToString();
    }
}
